package com.cluster.platform.mapper;

import com.cluster.platform.model.PmsSecondProduct;
import com.cluster.platform.model.PmsSecondProductExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface PmsSecondProductMapper {
    long countByExample(PmsSecondProductExample example);

    int deleteByExample(PmsSecondProductExample example);

    int deleteByPrimaryKey(String id);

    int insert(PmsSecondProduct record);

    int insertSelective(PmsSecondProduct record);

    List<PmsSecondProduct> selectByExample(PmsSecondProductExample example);

    PmsSecondProduct selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") PmsSecondProduct record, @Param("example") PmsSecondProductExample example);

    int updateByExample(@Param("record") PmsSecondProduct record, @Param("example") PmsSecondProductExample example);

    int updateByPrimaryKeySelective(PmsSecondProduct record);

    int updateByPrimaryKey(PmsSecondProduct record);

    int delBatch(@Param("ids") List<String> ids, @Param("username") String username);

    int deleteBatch(@Param("ids") List<String> ids);

    List<PmsSecondProduct> searchAll();

    List<PmsSecondProduct> searchAllByStatus();

    List<PmsSecondProduct> searchPmsSecondProductByName(@Param("name")String name, @Param("status")Integer status);
}